public class Single extends Shopper {
	
	//Returns shopping list
	public Product[] getProducts(String circumstance){
		Product[] result;//Shoppinglist
		result = getWeekday();//Default
		//Gets list depending on circumstance
		if(circumstance.equalsIgnoreCase("Weekend")){
			result = getWeekend();
		}
		else if(circumstance.equalsIgnoreCase("Summer")){
			result = getSummer();
		}
		else if(circumstance.equalsIgnoreCase("Winter")){
			result = getWinter();
		}
		return result;
	}
	//Returns list for single weekday
	protected Product[] getWeekday(){
		Product[] result;
		result = new Product[5];
		result[0] = new Product("Sandwich");
		result[1] = new Product("Beer");
		result[2] = new Product("Pancakes");
		result[3] = new Product("Rice");
		result[4] = new Product("Chicken");
		return result;
	}
	//Returns list for single weekend
	protected Product[] getWeekend(){
		Product[] result;
		result = new Product[5];
		result[0] = new Product("Pizza");
		result[1] = new Product("Crisps");
		result[2] = new Product("Phone Credit");
		result[3] = new Product("DVD");
		result[4] = new Product("Popcorn");
		return result;
	}
	//Returns list for single summer
	protected Product[] getSummer(){
		Product[] result;
		result = new Product[5];
		result[0] = new Product("Sangria");
		result[1] = new Product("Shades");
		result[2] = new Product("Flip Flops");
		result[3] = new Product("Shorts");
		result[4] = new Product("Cool hat");
		return result;
	}
	//Returns list for single winter
	protected Product[] getWinter(){
		Product[] result;
		result = new Product[5];
		result[0] = new Product("Shades");
		result[1] = new Product("Ski Jacket");
		result[2] = new Product("Ski Boots");
		result[3] = new Product("Hat");
		result[4] = new Product("Gloves");
		return result;
	}
}
